package cn.klaw.job.admin.service.impl;

import cn.klaw.job.admin.core.thread.JobCompleteHelper;
import cn.klaw.job.admin.core.thread.JobRegistryHelper;
import cn.klaw.job.core.biz.AdminBiz;
import cn.klaw.job.core.biz.model.HandleCallbackParam;
import cn.klaw.job.core.biz.model.RegistryHandlerName;
import cn.klaw.job.core.biz.model.RegistryParam;
import cn.klaw.job.core.biz.model.ReturnT;
import cn.klaw.job.core.handler.IJobHandler;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.ConcurrentMap;

/**
 *  2017-07-27 21:54:20
 */
@Service
public class AdminBizImpl implements AdminBiz {


    @Override
    public ReturnT<String> callback(List<HandleCallbackParam> callbackParamList) {
        return JobCompleteHelper.getInstance().callback(callbackParamList);
    }

    @Override
    public ReturnT<String> registry(RegistryParam registryParam) {
        return JobRegistryHelper.getInstance().registry(registryParam);
    }

    @Override
    public ReturnT<String> registryRemove(RegistryParam registryParam) {
        return JobRegistryHelper.getInstance().registryRemove(registryParam);
    }

    @Override
    public ReturnT<String> registryHandlerName(RegistryHandlerName registryHandlerName) {
        return null;
    }

}
